<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #id1{
             border:10px black solid;
             width: 160px;
             height: 160px;
             background-color: yellow;
             padding:20px 0 0 20px;
        }
    </style>
</head>
<body>
    <div id="id1">盒子里边的内容 距离边框有一定的距离</div>
</body>
</html>